Create credits usage
Create a usage entry for a credit product. This will impact the balance of the customer by usage_retained.
Documentation Index
Fetch the complete documentation index at: https://docs.hyperline.co/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Credit usage entry payload
Response
The created credit transaction
Credit transaction ID.
"cdt_BPZ19obsBS2qyo"
ID of the product related to the transaction.
"itm_3kXODDF42QXtnL"
Price details related to the transaction.
{
"id": "pri_0Jv8EbMDOGsHcn",
"amount": 20000,
"pack_size": 120
}ID of the customer related to the transaction.
"cus_Typ0px2W0aiEtl"
ID of the payment method related to the transaction.
"pm_1xMpj5bwRqN7LM"
ID of the invoice related to the transaction.
"inv_1eTaiytfA0i2Va"
ID of the event related to the credit consumption.
null
ID of the aggregator that triggered this usage (for multi-aggregator credits).
null
Expiration date for credits linked to this transaction
null
Type of credit transaction.
topup, usage, expiration "topup"
Deprecated field, we recommend no longer using it.
app, portal, api, system "system"
Monetary amount. Expressed in currency's smallest unit.
Value of credits related to the transaction.
32
Credit balance after the transaction.
2000

